// src/main/java/com/entity/OverallProgressEntity.java
package com.entity;


import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import java.io.Serializable;

/**
 * 用户整体课程学习进度表实体
 */
@TableName("overall_progress") // 确保表名正确
@Data
public class OverallProgressEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO) // 假设ID是自增的
    private Integer id;

    private Long courseId; // 课程ID
    private Long userId;   // 用户ID

    private Integer courseOverallLength; // 课程所有视频课总时长 (秒)
    private Integer userOverallProgress; // 用户已观看视频总时长 (秒)
    private Float progressPercent;       // 整体进度百分比


    @TableField(exist = false)
    private String title;
    @TableField(exist = false)
    private String courseCoverImageUrl;
}
